CastSession

public interface CastSession implements Observable<T>

A session of casting media content to a media receiver.

The session is discovered when the user starts casting the browser/screen content or a presentation of media content via the JxBrowser API, or another application, i.e. Google Chrome. To indicate that the cast session has been started by another profile and, accordingly, a Chromium instance the isLocal method is provided.

Since

7.29

See also

Functions

Link copied to clipboard
public abstract String description()
Returns the description of the session.
Link copied to clipboard
public abstract boolean isAlive()
Returns true if the session is alive.
Link copied to clipboard
public abstract boolean isLocal()
Returns true if the cast session is initiated and managed by the current profile.
Link copied to clipboard
public abstract MediaReceiver mediaReceiver()
Returns the media receiver of this session.
Link copied to clipboard
public abstract CastMode mode()
Returns the mode of the session.
Link copied to clipboard
public abstract Subscription on<E extends T>(Class<E> eventClass, Observer<E> observer)
Subscribes the given event observer to receive the events of the given eventClass.
Link copied to clipboard
public abstract Profile profile()
Returns the profile that discovered this cast session.
Link copied to clipboard
public abstract void stop()
Stops this cast session.
Link copied to clipboard
public final Subscription subscribe<E extends Event>(Observer<E> observer)
public final Subscription subscribe<E extends Event>(Observer<E> observer)

Subscribes the given observer to receive events of type E from this Observable.